public class ch08 {
    public static void main(String[] args) {
        int[] arr = {123,12,3445,2178};
        for (int i = 0; i < arr.length; i++) {
            int sum = 0;
            int num = arr[i];
            while (num > 0){
                sum += num % 10;
                num/=10;
            }
            if (sum%2 == 0){
                System.out.println(arr[i]);
            }
        }
    }
}
